<?php

//D:\phpStudy2016\php70n\php.exe phpTools.php > 1.txt

//过滤重复的内容
$a =["src/House/HouseBundle/Controller/Activity/Event/BatchLotteryController.php",
"src/House/HouseBundle/Controller/Activity/Event/SpringController.php",
"src/House/HouseBundle/CustomerClass/Constants/ConstantEventList.php",
"src/House/HouseBundle/CustomerClass/EventModule/Modules/SpringModule.php",
"src/House/HouseBundle/Controller/Activity/Event/SimpController.php",
"src/House/HouseBundle/Controller/Activity/Event/SpringController.php",
"src/House/HouseBundle/CustomerClass/Constants/ConstantEventList.php",
"src/House/HouseBundle/CustomerClass/Constants/ConstantMessageCode.php",
"src/House/HouseBundle/CustomerClass/EventModule/Components/AwardComponent.php",
"src/House/HouseBundle/CustomerClass/EventModule/Modules/SpringModule.php",
"src/House/HouseBundle/Controller/Activity/Event/SpringController.php",
"src/House/HouseBundle/CustomerClass/EventModule/Modules/SpringModule.php",
"src/House/HouseBundle/Controller/Activity/Event/SpringController.php",
"src/House/HouseBundle/CustomerClass/EventModule/Modules/SpringModule.php",
"src/House/HouseBundle/Controller/Activity/Event/SpringController.php",
"src/House/HouseBundle/Controller/Activity/Event/SpringController.php",
"src/House/HouseBundle/CustomerClass/Constants/ConstantEventList.php",
"src/House/HouseBundle/CustomerClass/EventModule/Modules/SpringModule.php",
"src/House/HouseBundle/Controller/Activity/Event/SpringController.php",
"src/House/HouseBundle/CustomerClass/EventModule/Modules/SpringModule.php",
"src/House/HouseBundle/CustomerClass/EventModule/Components/BaseComponent.php",
"src/House/HouseBundle/CustomerClass/EventModule/Modules/SpringModule.php",
"src/House/HouseBundle/Controller/Activity/Event/SpringController.php",
"src/House/HouseBundle/CustomerClass/EventModule/Modules/SpringRedPackModule.php",
"src/House/HouseBundle/Resources/views/game1511/live/live_fishing.html.twig",
"src/House/HouseBundle/CustomerClass/EventModule/Modules/SpringModule.php",
"src/House/HouseBundle/Controller/Activity/Event/SpringController.php",
"src/House/HouseBundle/CustomerClass/Constants/ConstantEventList.php",
"src/House/HouseBundle/CustomerClass/EventModule/Modules/SpringModule.php",
"src/House/HouseBundle/Controller/Activity/Event/SpringController.php",
"src/House/HouseBundle/CustomerClass/EventModule/Modules/SpringModule.php",
"src/House/HouseBundle/Controller/Activity/Event/SpringController.php",
"src/House/HouseBundle/CustomerClass/EventModule/Modules/SpringRankModule.php",
"src/House/HouseBundle/CustomerClass/EventModule/Modules/SpringRedPackModule.php",
"src/House/HouseBundle/Controller/Activity/Event/SpringController.php",
"src/House/HouseBundle/Controller/Activity/Event/SpringController.php",
"src/House/HouseBundle/CustomerClass/EventModule/Components/AwardComponent.php",
"src/House/HouseBundle/CustomerClass/EventModule/Modules/SpringModule.php",
"src/House/HouseBundle/Controller/Activity/Event/SpringController.php",
"src/House/HouseBundle/CustomerClass/Constants/ConstantEventList.php",
"src/House/HouseBundle/Controller/Activity/Event/SpringController.php",
"src/House/HouseBundle/Controller/Activity/Event/SpringController.php",
"src/House/HouseBundle/CustomerClass/EventModule/Modules/SpringModule.php",
"src/House/HouseBundle/Controller/Activity/Event/SpringController.php",
"src/House/HouseBundle/Resources/views/game1511/live/live_vertical_h.html.twig",
"src/House/HouseBundle/Resources/views/game1511/live/live_vertical_v2.html.twig",
"src/House/HouseBundle/CustomerClass/EventModule/Modules/SpringRedPackModule.php",
"src/House/HouseBundle/Resources/views/game1511/live/live_vertical_h.html.twig",
"src/House/HouseBundle/Resources/views/game1511/live/live_vertical_v2.html.twig",
"src/House/HouseBundle/CustomerClass/EventModule/Modules/SpringRankModule.php",
"src/House/HouseBundle/CustomerClass/EventModule/Modules/SpringRedPackModule.php",
"src/House/HouseBundle/Resources/views/game1511/live/live_vertical_h.html.twig",
"src/House/HouseBundle/Controller/Activity/Event/SpringController.php",
"src/House/HouseBundle/CustomerClass/Constants/ConstantEventList.php",
"src/House/HouseBundle/CustomerClass/EventModule/Modules/SpringModule.php",
"src/House/HouseBundle/Controller/Activity/Event/SpringController.php",
"src/House/HouseBundle/CustomerClass/Constants/ConstantEventList.php",
"src/House/HouseBundle/CustomerClass/EventModule/Modules/SpringRedPackModule.php",
"src/House/HouseBundle/Controller/Activity/Event/SpringController.php",
"src/House/HouseBundle/CustomerClass/EventModule/Modules/SpringRedPackModule.php",
"src/House/HouseBundle/CustomerClass/EventModule/Modules/SpringRedPackModule.php",
"src/House/HouseBundle/Controller/Activity/Event/SpringController.php",
"src/House/HouseBundle/CustomerClass/EventModule/Modules/SpringModule.php",
"src/House/HouseBundle/Controller/Activity/Event/SpringController.php",
"src/House/HouseBundle/CustomerClass/EventModule/Modules/SpringModule.php",
"src/House/HouseBundle/CustomerClass/Response/RtmpHelperClass.php",
"src/House/HouseBundle/Controller/Activity/Event/SpringController.php",
"src/House/HouseBundle/CustomerClass/Response/RtmpHelperClass.php",
"src/House/HouseBundle/CustomerClass/EventModule/Modules/SpringModule.php",
"src/House/HouseBundle/Controller/Activity/Event/SpringController.php",
"src/House/HouseBundle/Controller/Activity/Event/SpringController.php",
"src/House/HouseBundle/CustomerClass/EventModule/Modules/SpringModule.php",
"src/House/HouseBundle/CustomerClass/Response/RtmpHelperClass.php",
"src/House/HouseBundle/CustomerClass/Constants/ConstantMessageCode.php",
"src/House/HouseBundle/CustomerClass/EventModule/Modules/SpringModule.php",
"src/House/HouseBundle/Controller/Activity/Event/SpringController.php",
"src/House/HouseBundle/CustomerClass/EventModule/Modules/SpringModule.php",
"src/House/HouseBundle/CustomerClass/EventModule/Modules/SpringModule.php",
"src/House/HouseBundle/CustomerClass/Response/RtmpHelperClass.php",
"src/House/HouseBundle/CustomerClass/EventModule/Modules/SpringModule.php",
"src/House/HouseBundle/CustomerClass/Response/RtmpHelperClass.php",
"src/House/HouseBundle/CustomerClass/EventModule/Modules/SpringModule.php",
"src/House/HouseBundle/CustomerClass/EventModule/Modules/SpringModule.php",
"src/House/HouseBundle/Controller/Activity/Event/SpringController.php",
"src/House/HouseBundle/CustomerClass/EventModule/Modules/SpringModule.php",
"src/House/HouseBundle/CustomerClass/HelperClass/Market/MarketClass.php",
"src/House/HouseBundle/Controller/Activity/Event/SpringController.php",
"src/House/HouseBundle/CustomerClass/Response/RtmpHelperClass.php",
"src/House/HouseBundle/CustomerClass/Constants/ConstantMessageCode.php",
"src/House/HouseBundle/CustomerClass/Response/RtmpHelperClass.php",
"src/House/HouseBundle/CustomerClass/EventModule/Modules/SpringModule.php",
"src/House/HouseBundle/CustomerClass/RedisCore/RedisListTaskHelper.php",
"src/House/HouseBundle/CustomerClass/Response/RtmpHelperClass.php",
"src/House/HouseBundle/CustomerClass/EventModule/Modules/SpringModule.php",
"src/House/HouseBundle/Resources/views/game1511/live/live_vertical_h.html.twig",
"src/House/HouseBundle/Resources/views/game1511/live/live_vertical_v2.html.twig",
"src/House/HouseBundle/CustomerClass/EventModule/Modules/SpringModule.php",
"src/House/HouseBundle/Resources/views/game1511/live/live_vertical_v2.html.twig",
"src/House/HouseBundle/CustomerClass/EventModule/Modules/SpringModule.php",
"src/House/HouseBundle/Controller/Activity/Event/SpringController.php",
"src/House/HouseBundle/CustomerClass/EventModule/Modules/SpringModule.php",
"src/House/HouseBundle/Controller/Activity/Event/SpringController.php",
"src/House/HouseBundle/CustomerClass/EventModule/Modules/SpringModule.php",
"src/House/HouseBundle/Controller/Activity/Event/SpringController.php",
"src/House/HouseBundle/CustomerClass/HelperClass/Market/MarketClass.php",
"src/House/HouseBundle/CustomerClass/EventModule/Modules/SpringModule.php",
"src/House/HouseBundle/CustomerClass/EventModule/Modules/SpringRedPackModule.php",
"src/House/HouseBundle/CustomerClass/EventModule/Modules/SpringRedPackModule.php",
"src/House/HouseBundle/CustomerClass/EventModule/vendor/StarMatch/Models/SunModels.php",
"src/House/HouseBundle/CustomerClass/EventModule/Modules/SpringRedPackModule.php",
"src/House/HouseBundle/Controller/Activity/Event/SpringController.php",
"src/House/HouseBundle/CustomerClass/EventModule/Modules/SpringRedPackModule.php",
"src/House/HouseBundle/CustomerClass/EventModule/Modules/BatchModule.php",
"src/House/HouseBundle/CustomerClass/EventModule/Modules/SpringModule.php",
"src/House/HouseBundle/CustomerClass/EventModule/Components/AwardComponent.php",
"src/House/HouseBundle/CustomerClass/EventModule/Modules/SpringRedPackModule.php",
"src/House/HouseBundle/CustomerClass/EventModule/Modules/SpringModule.php",
"src/House/HouseBundle/CustomerClass/HelperClass/Market/MarketClass.php",
"src/House/HouseBundle/CustomerClass/EventModule/Modules/SpringModule.php",
"src/House/HouseBundle/CustomerClass/EventModule/Modules/SpringModule.php",
"src/House/HouseBundle/CustomerClass/EventModule/Modules/SpringModule.php",
"src/House/HouseBundle/CustomerClass/EventModule/Modules/SpringModule.php",
"src/House/HouseBundle/CustomerClass/HelperClass/Market/MarketClass.php",
"src/House/HouseBundle/CustomerClass/EventModule/Modules/SpringRedPackModule.php",
"src/House/HouseBundle/Controller/Activity/Event/SpringController.php",
"src/House/HouseBundle/CustomerClass/EventModule/Modules/SpringModule.php",
"src/House/HouseBundle/Controller/Activity/Event/SpringController.php",
"src/House/HouseBundle/Resources/views/game1511/market/marketguard.html.twig",
"src/House/HouseBundle/CustomerClass/EventModule/Modules/SpringModule.php",
"src/House/HouseBundle/CustomerClass/HelperClass/Market/MarketClass.php",
"src/House/HouseBundle/CustomerClass/EventModule/Modules/SpringModule.php",
"src/House/HouseBundle/CustomerClass/EventModule/Modules/SpringModule.php",
"src/House/HouseBundle/Controller/Activity/Event/SpringController.php",
"src/House/HouseBundle/CustomerClass/EventModule/Modules/SpringModule.php",
"src/House/HouseBundle/CustomerClass/EventModule/Modules/SpringModule.php",
"src/House/HouseBundle/Controller/Activity/Event/SpringController.php",
"src/House/HouseBundle/CustomerClass/Constants/ConstantMessageCode.php"];
$b = array_unique($a);
foreach($b as $item)
{
	echo $item."\n\r";
}

//创建常用的symfony控制器目录结构
// $controllerName = 'Member';
// $controllerName = ucfirst($controllerName);
// $controllerPath = "E://src/House/HouseBundle/Controller/{$controllerName}";
// $controllerResourcesPath = "E://src/House/HouseBundle/Resources/config/{$controllerName}";
// $controllerViewPath = "E://src/House/HouseBundle/Resources/views/{$controllerName}";
// if(!file_exists($controllerPath))
// {
// 	mkdir($controllerPath,0777,true);
// }

// if(!file_exists($controllerResourcesPath))
// {
// 	mkdir($controllerResourcesPath,0777,true);
// }

// if(!file_exists($controllerViewPath))
// {
// 	mkdir($controllerViewPath,0777,true);
// }

// //生成controller文件
// if(!file_exists($controllerPath.'/'.$controllerName.'Controller.php'))
// {
// 	file_put_contents($controllerPath.'/'.$controllerName.'Controller.php','<?php ');
// }

// //生成xml
// if(!file_exists($controllerResourcesPath.'/index.xml'))
// {
// 	$data =<<<EOT
// 	<?xml version="1.0" encoding="UTF-8" ?>
// <routes xmlns="http://symfony.com/schema/routing"
//         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
//         xsi:schemaLocation="http://symfony.com/schema/routing http://symfony.com/schema/routing/routing-1.0.xsd">
//     <!--
//     <route id="house_index" path="/">
//         <default key="_controller">HouseBundle:Index:indexShow</default>
//     </route> 
// 	-->
// </routes>
// EOT;
// 	file_put_contents($controllerResourcesPath.'/index.xml',$data);
// }
// //生成twig文件
// if(!file_exists($controllerViewPath.'/index.html.twig'))
// {
// 	file_put_contents($controllerViewPath.'/index.html.twig','{# .... #}');
// }
// echo $controllerPath;
	
echo "\n\r========================\n\r";
echo "===     well done!   ===\n\r";
echo "========================\n\r";